<?php
namespace app\index\model;
use think\Model;

class Popup extends Model
{
    protected $table = 'quick_popup';


    public function getChannelIdArrAttr($value, $data)
    {
        return array_filter(explode(',', $data['channels']));
    }


    public function getSeatArrAttr($value, $data)
    {
        return array_filter(explode(',', $data['seat']));
    }



    public function getNovelIdArrAttr($value, $data)
    {
        return array_filter(explode(',', $data['novels']));
    }
}